package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    User findByUsername(String username);

    List<Menu> findUserByUsername(String username);

    PageResult findPage(QueryPageBean queryPageBean);

    //添加用户
    void add(User user, Integer[] roleIds);

    User findById(Integer id);

    //根据userId查询roleIds
    List<Integer> findRoleIdsByUserId(Integer userId);

    //修改用户信息
    void edit(User user, Integer[] roleIds);

    //删除用户
    void delete(Integer id);
}
